package com.wxb.testinterface.controller;

import com.wxb.apiclientsdk.model.User;
import com.wxb.apiclientsdk.utils.SignUtils;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/name")
public class NameController {
    @GetMapping("/")
    public String  getNameByGet(String name, HttpServletRequest request){
        return "GET 你的名字" + name;
    }

    @PostMapping("/")
    public String  getNameByPost(@RequestBody String name){
        return "POST 你的名字" + name;
    }

    @PostMapping("/user")
    public String getUserNameByPost(@RequestBody String requestParams, HttpServletRequest request){

        return "POST 用户名字" + requestParams;
    }
}
